package com.daon.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @Author 1daon
 * @EMAIL 532418116@qq.com
 * @Version 创建时间：2019/3/5 1:14 PM
 * @Modified By
 */
@Getter
@Setter
@ToString
public class SysRoleParam {
    private Integer roleId;

    @NotBlank(message="职务名称不能为空")
    @Length(max=20, min=1, message = "角色名称需要1到20个字之间")
    private String roleName;
    @Length(max=500, message = "角色说明需要1到500个字之间")
    private String roleDesc;
}
